package com.config;

import com.Interceptor.LoginInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Configuration--声明被spring扫描注入
 * Created by yangziqiang on 16-9-19.
 */


@Configuration
public class WebAppConfig extends WebMvcConfigurerAdapter {


    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        //创建拦截器  并自定义拦截器添加进去
        //registry.addInterceptor(new LoginInterceptor());
    }
}
